import {post,get} from"../../utils/request"
// 新闻详情接口
export function newsDetail(articleId){
  return get(`/api/cms/article/open/detail/${articleId}`,{
    articleId,
  })
  
}
// 轮播图
export function getbanner(pageNum,pageSize){
  return post("/api/cms/article/open/banner/list",{
   pageNum,
   pageSize
 })
 }
 // 收藏/api/cms/collect/collect/article/{articleId}
export function collect(articleId){
  return get(`/api/cms/collect/collect/article/${articleId}`)
}
// 收藏文章列表
export function collectList(){
  return get(`/api/cms/article/collect/list`)
}
// 点赞
export function like(articleId){
  return get(`/api/cms/article/add/zan/${articleId}`)
}